package com.zcoj.pojo.Dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author 剩xia的盛夏
 * @date 2023/02/24 16:16
 */
@Data
@ApiModel("")
@TableName("`group`")
public class Group  implements Serializable {

    private static final long serialVersionUID = 2892248514883451461L;

    @ApiModelProperty(value = "", example = "1")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "头像地址")
    private String faceUrl;

    @ApiModelProperty(value = "团队名称")
    private String name;

    @ApiModelProperty(value = "团队简称，创建题目时题号自动添加的前缀")
    private String shortName;

    @ApiModelProperty(value = "团队简介")
    private String brief;

    @ApiModelProperty(value = "团队介绍")
    private String description;

    @ApiModelProperty(value = "团队拥有者用户名")
    private String owner;

    @ApiModelProperty(value = "团队拥有者用户id", example = "1")
    private Integer uid;

    @ApiModelProperty(value = "0为Public，1为Protected，2为Private", example = "1")
    private Integer auth;

    @ApiModelProperty(value = "是否可见")
    private Integer visible;

    @ApiModelProperty(value = "是否封禁")
    private Integer status;

    @ApiModelProperty(value = "邀请码(6位)")
    private String code;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
